import request from '@/utils/request'

// 查询学生表单列表
export function listForm(query) {
  return request({
    url: '/complex/form/list',
    method: 'get',
    params: query
  })
}

// 查询学生表单详细
export function getForm(scoreId) {
  return request({
    url: '/complex/form/' + scoreId,
    method: 'get'
  })
}

// 新增学生表单
export function addForm(data) {
  return request({
    url: '/complex/form',
    method: 'post',
    data: data
  })
}

// 修改学生表单
export function updateForm(data) {
  return request({
    url: '/complex/form',
    method: 'put',
    data: data
  })
}

// 删除学生表单
export function delForm(scoreId) {
  return request({
    url: '/complex/form/' + scoreId,
    method: 'delete'
  })
}

export function commitForm(formId) {
  return request({
    url: '/complex/form/commit',
    method: 'get',
    params: formId
  })
}

export function refuseForm(formId) {
  return request({
    url: '/complex/form/refuse',
    method: 'get',
    params: formId
  })
}

export function download(url) {
  return request({
    url: url,
    method: 'get'
  })
}